package com.lingz.manager.modules.wuxue.controller;




import com.baomidou.mybatisplus.extension.api.ApiController;
import com.lingz.manager.common.utils.ResultUtil;
import com.lingz.manager.common.vo.Result;
import com.lingz.manager.modules.wuxue.entity.TuopuInsectData;
import com.lingz.manager.modules.wuxue.entity.YikemanData;
import com.lingz.manager.modules.wuxue.service.TuopuInsectDataService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.List;


/**
 * (WTuopuInsectData)表控制层
 *
 * @author makejava
 * @since 2023-12-02 20:38:44
 */
@Slf4j
@RestController
@Api(description = "托普虫情图片数据接口")
@RequestMapping("/wuxue/tuopuInsectData")
@Transactional
public class TuopuInsectDataController extends ApiController {
    /**
     * 服务对象
     */
    @Autowired
    private TuopuInsectDataService tuopuInsectDataService;

    @GetMapping("/findYikemanDataList")
    @ApiOperation("不分页查询依科曼虫情数据")
    public Result<List<TuopuInsectData>> findTuopuInsectDataList(TuopuInsectData tuopuInsectData) throws IOException {
        return new ResultUtil<List<TuopuInsectData>>().setData(tuopuInsectDataService.findTuopuInsectDataList(tuopuInsectData));
    }

}

